package com.yunban.project.article.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

@Data
@Schema(description = "文章添加入参")
public class ArticleReq implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @NotBlank(message = "文章名称-{name}-不能为空")
    @Schema(description = "文章名称")
    private String name;

    @NotBlank(message = "文章内容-{html}-不能为空")
    @Schema(description = "文章内容-html")
    private String html;
}
